export default defineAppConfig({
  pages: [
    "pages/index/index",
    "pages/case/index",
    "pages/product/index",
    "pages/cart/index",
    "pages/my/index",
  ],
  subpackages: [
    {
      root: "packagesB",
      pages: [
        "cart/detail/index",
        "case/detail/index",
        "index/detail/index",
        "my/detail/index",
        "product/detail/index",
      ],
    },
  ],
  tabBar: {
    color: "#909399",
    selectedColor: "#303133",
    backgroundColor: "#FFFFFF",
    borderStyle: "black",
    list: [
      {
        pagePath: "pages/index/index",
        iconPath: "static/images/nav/home-off.png",
        selectedIconPath: "static/images/nav/home-on.png",
        text: "首页",
      },
      {
        pagePath: "pages/product/index",
        iconPath: "static/images/nav/fl-off.png",
        selectedIconPath: "static/images/nav/fl-on.png",
        text: "产品",
      },
      {
        pagePath: "pages/case/index",
        iconPath: "static/images/nav/coupon-off.png",
        selectedIconPath: "static/images/nav/coupon-on.png",
        text: "案例",
      },
      {
        pagePath: "pages/cart/index",
        iconPath: "static/images/nav/cart-off.png",
        selectedIconPath: "static/images/nav/cart-on.png",
        text: "购物车",
      },
      {
        pagePath: "pages/my/index",
        iconPath: "static/images/nav/my-off.png",
        selectedIconPath: "static/images/nav/my-on.png",
        text: "我的",
      },
    ],
  },
  window: {
    backgroundTextStyle: "light",
    navigationBarBackgroundColor: "#fff",
    navigationBarTitleText: "WeChat",
    navigationBarTextStyle: "black",
  },
});
